package com.fire.rabbitmq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author ：Mr.Fire
 * @date ：Created in 2021/4/25 16:15
 * @description：
 * @modified By：
 * @version: $
 */
@Component
public class Consumer3 {

    @RabbitHandler
    @RabbitListener(queues = "queueA")
    public void receive(String msg){
        System.out.println("Consumer3收到消息："+msg);
    }
}
